home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 132_01.zip / PRELUDE < prev    next >
Text File  |  1993-06-01  |  512b  |  32 lines

  1.     #ASM
  2. ;+
  3. ;    This file must preceed any 'C' language program which requires
  4. ;  added stack space. It is called once on entry to the  entire set of
  5. ;  'C' routines. On exit POSTLUDE is called.
  6. ;-
  7. prelude:
  8.     pshs    Y
  9.     tfr    s,y
  10.     lds    #newstack
  11.     pshs    d,x,y,u,dp
  12.     jsr    begin
  13. postlude:
  14.     puls    d,x,y,u,dp
  15.     tfr    y,s
  16.     puls    y
  17.     rts
  18. ;+
  19. ;    reserve stack space
  20. ;-
  21.     rmb    200H
  22. newstack:
  23.     rmb    2
  24. begin:
  25.     #ENDASM
  26. ASM
  27. tick();    /* get joystick co-ordinates    */
  28. xl = *plx;
  29. yl = *ply;
  30. xr = *prx;
  31. yr = *pry;
  32. mscan=mas